#include <stdio.h>

int main() {
    int num = 0;
    while (scanf("%d", &num) != EOF) {
        int num1 = num + 1;
        while (num1--) {
            for (int j = num1 + 1; j; j--) {
                printf("* ");
            }
            printf("\n");
        }
        int num2 = num;
        for (int i = 2; num2--; i++) {
            for (int j = 1; j <= i; j++) {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}